package com.ysh.xiaomi.dao;

import com.ysh.xiaomi.pojo.TbAddress;
import com.ysh.xiaomi.pojo.TbUser;

/**
 * 袁胜虎 on 2022/8/15 22:16
 */
public interface UserDao {
    /**
     * 添加数据到数据库
     * @param tbUser
     * @return
     */
    public int AddUser(TbUser tbUser);

    public int AddAddress(TbAddress address);

    /**
     * 按照用户名查询
     */
    TbUser findByUser(String name);

    int updateLoginTime(Long userId);

    TbUser selectByUsername(String username);
}
